<?php
if(!defined('ADMIN')){
    exit('Access Denied');
}

//菜品备注，其实就使用个弹出框
if($_POST['remark']!=''){

    $id=empty($_POST['id'])?0:(int)$_POST['id'];
    $remark = $_POST['remark'];
    unset($_POST['id']);
    unset($_POST['sub']);
    if(empty($id)){
        $code = -1;
    }
    if(empty($remark)){
        $code = -2;
    }
    $code = 0;
    echo json_encode(array('code'=>$code, 'data'=>array('id'=>$id, 'remark'=>$remark)));





}else{
    $id = (int)$_GET['id'];
    $row = $ezhand->select("shopping3_goods","*" ," id=$id");
    //pp($row);

}
?>